#ifndef _COMMONUTIL_H_
#define _COMMONUTIL_H_

#ifdef _WIN32
#   include <windows.h>
#   include <winsock2.h>
#endif

#include "mysql.h"

#include "loomserver.h"
#include "loomtype.h"

int init_company_attr(MYSQL *conn, company_attr_t **companyattr);

loomattr_list_t *find_loom_attr(uint16_t repeater, company_attr_t *companyattr);
void do_server_log(MYSQL *conn, const char *type, const char *msg);
#endif /*_COMMONUTIL_H_*/
